SetPlaceholderText
Sets the placeholder text to the current inline content control. Can't be set to checkbox or radio button*
Syntax
expression.SetPlaceholderText(sText);
expression
- A variable that represents a ApiInlineLvlSdt class.
Parameters
Name | Required/Optional | Data type | Default | Description |
---|---|---|---|---|
sText | Required | string | The text that will be set to the current inline content control. |
Returns
boolean
Example
This example sets the placeholder text to the inline content control.
let doc = Api.GetDocument();
let paragraph = doc.GetElement(0);
let inlineLvlSdt = Api.CreateInlineLvlSdt();
paragraph.AddInlineLvlSdt(inlineLvlSdt);
inlineLvlSdt.SetPlaceholderText("Custom placeholder");